package Firstdroid.Gps;
//import com.google.android.maps.MapActivity;
//import com.google.android.maps.MapView;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
public class MainActivity extends Activity 
{
    /** Called when the activity is first created. */
	//@Override
	//protected boolean isRouteDisplayed() {
	//    return false;
	//}
    @Override
    public void onCreate(Bundle savedInstanceState) 
    {
    	super.onCreate(savedInstanceState);
    	setContentView(R.layout.main);
    	Button startButton = (Button) findViewById(R.id.buttonStart);
    	startButton.setOnClickListener(new OnClickListener() 
    	{
    	    	@Override
    	    	public void onClick(View arg0) 
    	    	{
    	    	Log.d("Firstdroid.Gps", "Starting Exploration..");
    	   		// Start Urban Exploration
    	   		startService(new Intent(MainActivity.this, UrbanExplorer.class));
    	    	}
    	});
    	 
    	Button stopButton = (Button) findViewById(R.id.buttonStop);
    	stopButton.setOnClickListener(new OnClickListener() 
    	{
    	    	@Override
    	    	public void onClick(View v) 
    	    	{
    	    	Log.d("Firstdroid.Gps", "Stopping Exploration..");
    	    	// Stop Urban Exploration
    	    	stopService(new Intent(MainActivity.this, UrbanExplorer.class));
    	}
    	});
    }
}/* End of MainActivity */
    	//MapView mapView = (MapView) findViewById(R.id.mapview);
        //mapView.setBuiltInZoomControls(true);